package com.adcc.loadsheet.billing.security;

import com.google.common.collect.Maps;
import org.joda.time.DateTime;

import java.io.Serializable;
import java.util.Map;

/**
 * 令牌实体
 */
public class BillingUserToken implements Serializable{

    // 消息头
    private Map<String,Object> header = Maps.newHashMap();

    // 消息体
    private String body;

    // 失效时间
    private DateTime expiredTime;

    /**
     * 构造函数
     */
    public BillingUserToken(){
        header.put("alg","HS256");
        header.put("typ","AWT");
    }

    public Map<String, Object> getHeader() {
        return header;
    }


    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public DateTime getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(DateTime expiredTime) {
        this.expiredTime = expiredTime;
    }
}